//
//  BGBNavigationController.m
//  BaoGongBao
//
//  Created by User on 14/11/4.
//  Copyright (c) 2014年 irule. All rights reserved.
//

#import "BGBNavigationController.h"

@interface BGBNavigationController ()

@end

@implementation BGBNavigationController

- (void)rightBarButtonItemSelector:(id)sender
{
	UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
	[sb instantiateViewControllerWithIdentifier:@"SettingViewController"];
//	SettingViewController *vc = [[SettingViewController alloc] initWithNibName:nil bundle:nil];
//	[self.navigationController pushViewController: animated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
	self.navigationController.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"setting"] style:UIBarButtonItemStylePlain target:self action:@selector(rightBarButtonItemSelector:)];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}


@end
